package model

import (
	"tdy-backend/app/core/model"
)

type Asset struct {
	model.BaseModel
	MemberId         uint   `gorm:"column:member_id;type:bigint(20);not null;comment:会员id"`
	Name             string `gorm:"column:name;type:varchar(100);not null;comment:媒体名称"`
	UniqueKey        string `gorm:"column:unique_key;type:varchar(200);not null;comment:媒体文件标识"`
	UniqueKeyPreview string `gorm:"-"`
	Size             int64  `gorm:"column:size;type:int(11);default:0;not null;comment:媒体文件大小"`
	Type             int    `gorm:"column:type;type:tinyint(4);not null;comment:1 图片 2 音频 3视频"`
	FileType         string `gorm:"column:file_type;type:varchar(80);comment:mime类型"`
}
